extends mixins/_layout
block content
	body
		// 头部
		include mixins/_header_t.jade
		div.banner
			img.width100(src='/images/news_bg.png')
		.main-content
			.row.row-margin-bottom
				.container
					.position-tips
							p.nomargin
								a(href='./', target='_blank') 首页
								|  > 新闻中心
					.news-title
						h3.nomargin 新闻中心
					.news-items.affix-top
						ul.list-unstyled.font16
							each item in newsType
								li(class="#{newsListName.id == item.id?'active':''}")
									a(href='/news?tid=#{item.id}')
										| #{item.CateName}

					.news-demo.edu-white-bg
						if newsList.length ==0
							div(style="text-align:center;line-height:300px;") 暂时找不到数据
						each  item in newsList
							.media
								if item.thumbnail
									a.pull-left.thumbnail(href='/news/detail?tid=#{newsListName.id}&id=#{item.id}')
										img.cover(src='#{item.thumbnail}', alt='')
								.pull-left.time
									span.day #{moment(item.publish).format('MM-DD')}
									span.yer #{moment(item.publish).format('YYYY')}
								.media-body
									h4.media-heading.edu-gray1-c
										a(href='/news/detail?tid=#{newsListName.id}&id=#{item.id}') #{item.title}
									p !{trimHtml(item.remark,{limit: 100 }).html}
									a.golink(href='/news/detail?tid=#{newsListName.id}&id=#{item.id}') 阅读全文

						div(style='margin: 20px;overflow:hidden;')
							if newsList.length > 0
								.row
									.col-md-4.hidden-xs.hidden-sm.text-left(style='line-height:30px;')
										| 总共&nbsp;#{pagesize}&nbsp;条记录
									.col-xs-12.col-sm-12.col-md-8.text-right
										.paging_bootstrap.pagination.text-right
											| !{laypage}
		//底部
		include mixins/_footer.jade
